OpenChannelSettingsViewModel

open class OpenChannelSettingsViewModel : BaseViewModel

ViewModel preparing and managing data related with the settings of an open channel since 3.0.0

Constructors

Link copied to clipboard
open fun OpenChannelSettingsViewModel(@NonNull channelUrl: String)
Constructor

Functions

Link copied to clipboard
open fun authenticate(@NonNull handler: AuthenticateHandler)
Tries to connect Sendbird Server and retrieve a channel instance.
Link copied to clipboard
open fun deleteChannel(@Nullable handler: OnCompleteHandler)
Updates current channel.
Link copied to clipboard
open fun getChannelUpdated(): LiveData<OpenChannel>
Returns LiveData that can be observed if the channel has been updated.
Link copied to clipboard
protected open fun onCleared()
since 3.0.
Link copied to clipboard
open fun shouldFinish(): LiveData<Boolean>
Returns LiveData that can be observed if the Activity or Fragment should be finished.
Link copied to clipboard
open fun updateChannel(@NonNull params: OpenChannelUpdateParams, @Nullable handler: OnCompleteHandler)
Updates current channel.

Properties

Link copied to clipboard
open val channel: OpenChannel
Link copied to clipboard
val channelUrl: String